
/** 页面跳转 */
export const toPages = (pages: String) => {
  uni.navigateTo({
    url: pages,
  })
}

// import { useToast } from 'wot-design-uni'

// const toast = useToast()
// export const showToast = () => {
//   toast.warning({
//     // direction: 'vertical',
//     msg: 'Under function construction Not yet open',
//     duration: 1500,
//     iconClass: 'kehuishouwu',
//     classPrefix: 'fish',
//     position: 'middle',
//   })
// }

export const showToast = () => {
  uni.showToast({
    title: 'Not yet open',
    duration: 1500,
    mask: true,
    icon: "error"
  });
}